<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 27662
  Date: 2024/9/3
  Time: 15:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>医生修改排班</title>
<%--    医生名称+科室 看病人数 周几 --%>
    <script src="${pageContext.request.contextPath}/static/js/js_lzh/jquery.min.js"></script>


    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Medicamp Responsive Bootstrap Template">
    <meta name="keywords" content="Pixel">
    <meta name="author" content="rkwebdesigns">
    <title>挂号</title>
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/bootstrap-dropdownhover.min.css" rel="stylesheet">
    <!-- Fonts Awesome -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/font-awesome.min.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,800italic,800,600italic,600,400italic,700,700italic' rel='stylesheet' type='text/css'>
    <!-- animate Effect -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/animate.css" rel="stylesheet">
    <!-- Main CSS -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/style.css" rel="stylesheet">
    <!-- Responsive CSS -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/responsive.css" rel="stylesheet">
</head>
<body>
<header id="header" class="head">
    <div class="top-header">
        <div class="container">
            <div class="row ">
                <ul class="contact-detail2 col-md-6 pull-left">
                    <li> <i class="fa fa-mobile" style="color: white"></i><font color="white">联系我们 +86 4004008299 </font></li>
                </ul>
                <div class="social-links col-md-6 pull-right">
                    <ul class="social-icons pull-right">
                        <li> <i class="fa fa-envelope-o" style="color: white"></i><font color="white"> yiliaojiankang@gmail.com </font></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <nav class="navbar navbar-default navbar-menu">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">
                    <div class="logo-text"><span><samp>医</samp>医疗</span>健康系统</div>
                    <!-- <img src="${pageContext.request.contextPath}/static/img/logo.png" alt="logo"> -->
                </a>
            </div>
            <form action="${pageContext.request.contextPath}/doctorInfo/parseId.do?id=${id}" method="post">
                <input type="hidden" name="id" value="${id}">
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" data-hover="dropdown" data-animations="fadeIn">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="${pageContext.request.contextPath}/doctorInfo/parseId.do?id=${id}">首页</a></li>
                        <li><a href="${pageContext.request.contextPath}/plan/findAllPai2.do?id=${id}">排班</a></li>
                        <li><a href="${pageContext.request.contextPath}/doctor/docexam.do?id=${id}">体检</a></li>
                        <li><a href="${pageContext.request.contextPath}/register/findDoctorById.do?id=${id}">挂号</a></li>
                        <li><a href="${pageContext.request.contextPath}/">咨询</a></li>
                        <li><a href="${pageContext.request.contextPath}/messageList/messageFindAll4.do">公告</a></li>
                        <li><a href="${pageContext.request.contextPath}/doctorInfo/findDoctorById.do?id=${id}">个人中心</a></li>
                    </ul>
                </div>
            </form>
        </div>
    </nav>
</header>
<center>
    <h2>修改排班</h2>
    <font style="color: red">${msg}</font>
    <form action="${pageContext.request.contextPath}/doctor/updatePaiBan.do" method="post" id="f1">
       <!--添加三个隐藏域-->
        <input type="hidden" name="id" value="${plan.id}">
        <input type="hidden" name="pageNum" value="${pageNum}">
        <input type="hidden" name="pageSize" value="${pageSize}">
        <input type="hidden" name="num1" id="num1" value="${plan.number}">
        医生及科室：
        <select name="doctor" id="doctor">

        </select><br/>
        修改就诊时间：
<%--        <input type="hidden" name="week" id="week">--%>
        <select name="week" id="zhouJi">
<%--            <option ${plan.week=='周一'?'selected=selected':''}>请选择</option>--%>
            <option ${plan.week=='星期一'?'selected=selected':''}>星期一</option>
            <option ${plan.week=='星期二'?'selected=selected':''}>星期二</option>
            <option ${plan.week=='星期三'?'selected=selected':''}>星期三</option>
            <option ${plan.week=='星期四'?'selected=selected':''}>星期四</option>
            <option ${plan.week=='星期五'?'selected=selected':''}>星期五</option>
            <option ${plan.week=='星期六'?'selected=selected':''}>星期六</option>
            <option ${plan.week=='星期日'?'selected=selected':''}>星期日</option>
        </select><br/>
        <input type="submit" value="提交">
    </form>
</center>



<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.plugin.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.isotope.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.magnific-popup.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/bootstrap-dropdownhover.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/wow.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/waypoints.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.counterup.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/main.js"></script>


<script src="${pageContext.request.contextPath}/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/raphael/raphael-min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/morris/morris.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/knob/jquery.knob.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/daterangepicker/moment.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/daterangepicker/daterangepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/fastclick/fastclick.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/iCheck/icheck.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/adminLTE/js/app.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/treeTable/jquery.treetable.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/select2/select2.full.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/js/markdown.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/ckeditor/ckeditor.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/input-mask/jquery.inputmask.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/chartjs/Chart.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.resize.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.pie.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.categories.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</body>
<script>
    var dcid=${plan.doctor_id}
    $(document).ready(function (){
        //查询医生及科室并回显
        $.get("${pageContext.request.contextPath}/doctor/findDoctorsKe.do",function (data){
            console.log(data)
            for(i=0;i<data.length;i++){
                if (dcid===data[i].id){
                    $("#doctor").append("<option value='"+data[i].id+'-'+data[i].department1.id+"'>"+data[i].name+'-'+data[i].department1.department_name+"</option>")
                }
            }
        })

    })

    $("#zhouJi").change(function (){
        // console.log($("#zhouJi option:selected").text())
        var week1 = $("#zhouJi option:selected").text();
        $("#week").val(week1);
    })
</script>
</html>
